package com.naxiang.zhaohang.naxiangtimelibrary;

import android.widget.Toast;

import com.uzmap.pkg.uzcore.UZWebView;
import com.uzmap.pkg.uzcore.uzmodule.UZModule;
import com.uzmap.pkg.uzcore.uzmodule.UZModuleContext;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 作者: 赵航
 * 创建时间: 2018/5/29 13:23
 * 描述:
 */
public class NaXiangTimer extends UZModule {
    public NaXiangTimer(UZWebView webView) {
        super(webView);
    }


    public void jsmethod_getTimerSelect(UZModuleContext moduleContext) {
        Toast.makeText(mContext, "有反应了", Toast.LENGTH_SHORT).show();


    }

    //回调函数
    public void jsmethod_getTimerString(UZModuleContext moduleContext) {

        JSONObject object = new JSONObject();
        try {
            object.put("time", "加油");
            moduleContext.success(object, true);
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

}
